package com.xcapp.xcshop.service;

import com.xcapp.xcshop.mapper.PersonMapper;
import com.xcapp.xcshop.model.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonService {
    // 这个Service的操作为从PersonMapper中接过findAll()数据在return出去
    @Autowired
    private PersonMapper personMapper;

    public List<Person> findAll(){
        return personMapper.findAll();
    }
}